<?php
$session = $this->session->userdata('logged_in');
?>
<!DOCTYPE HTML>
<html>
    <head>
    <link rel="icon" type="image/png" href="<?php echo base_url(); ?>public/img/hotel.png"/>
        <title>
            Hotel Management System
        </title>
        <link href="<?php echo base_url(); ?>public/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link href="<?php echo base_url(); ?>public/css/hms.css" rel="stylesheet" media="screen">
        <link href="<?php echo base_url(); ?>public/css/fullcalendar.css" rel="stylesheet" media="screen">
        <link href="<?php echo base_url(); ?>public/css/fullcalendar.print.css" rel="stylesheet" media="print">
        <link href="<?php echo base_url(); ?>public/css/datepicker.css" rel="stylesheet" media="screen">
        <link href="<?php echo base_url(); ?>public/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
        <link href="<?php echo base_url(); ?>public/css/custom-theme/jquery-ui-1.9.2.custom.css" rel="stylesheet" media="screen">
		
        <script src="<?php echo base_url(); ?>public/js/jquery.min.js"></script>
        <script src="<?php echo base_url(); ?>public/js/bootstrap.min.js"></script>
        <script src="<?php echo base_url(); ?>public/js/gcal.js"></script>
        <script src="<?php echo base_url(); ?>public/js/fullcalendar.min.js"></script>
        <script src="<?php echo base_url(); ?>public/js/bootstrap-datepicker.js"></script>
        <script src="<?php echo base_url(); ?>public/js/jquery-ui-1.9.2.custom.min.js"></script>
        <script src="<?php echo base_url(); ?>public/js/autoNumeric.js"></script>
        <script src="<?php echo base_url(); ?>public/js/bootstrap-datetimepicker.min.js"></script>
        <script src="<?php echo base_url(); ?>public/js/phpjs.js"></script>

        <?php if($css_files){ ?>
        <?php foreach ($css_files as $file): ?>
            <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
        <?php endforeach; ?>
        <?php foreach ($js_files as $file): ?>
            <script src="<?php echo $file; ?>"></script>
        <?php endforeach; ?>
        <?php } ?>
    </head>
    <body>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
				<div style="border-bottom-style: groove; border-bottom-color: azure;">
				<left>
				<img class="img-circle" src="<?php echo base_url()?>image/logo.JPG"  width="150px">
				<div style="margin-left: 161px; margin-top: -92px; padding-bottom: 15px;">
				<p style=" font-weight: bold; font-size:26px ; color: #AD0923 ">Hotel</p>
				<p style=" font-weight: bold; font-size:26px ; color: #AD0923 ">Management</p>
				<p style=" font-weight: bold; font-size:26px ; color: #AD0923 ">System</p>
				</div>
				</left>
                    <div class="navbar navbar-fixed">
                        <div class="navbar-inner">
                            <div class="container-fluid">
                                
                                <div class="nav-collapse collapse">
                                    <ul class="nav">
                                        <?php if ($session['level_id'] != 0) { ?>
                                            <li class="dropdown">
                                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" style=" font-weight: bold; font-size: 17px "><i class="icon-book"></i> Reservation <b class="caret"></b></a>
                                                <ul class="dropdown-menu">
                                                    <li><a href="<?php echo base_url(); ?>reservation"style=" font-weight: bold ">Reservation</a></li>
                                                    <li class="divider"></li>
                                                    <li><a href="<?php echo base_url(); ?>room/avail"style=" font-weight: bold ">Room Availability</a></li>
                                                    <li class="divider"></li>
                                                    <li><a href="<?php echo base_url(); ?>reservation/payment_type"style=" font-weight: bold ">Payment Type</a></li>
                                                </ul>
                                            </li>
                                            <li class="divider-vertical"></li>
                                            <li class="dropdown">
                                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"style=" font-weight: bold; font-size: 17px "><i class="icon-home"></i> Room <b class="caret"></b></a>
                                                <ul class="dropdown-menu">
													<li><a href="<?php echo base_url(); ?>room/housekeeping" style=" font-weight: bold ">Housekeeping</a></li>
                                                    <li><a href="<?php echo base_url(); ?>room" style=" font-weight: bold ">Room List</a></li>
                                                    <li><a href="<?php echo base_url(); ?>room/rate" style=" font-weight: bold ">Room Rate</a></li>
                                                    <li class="divider"></li>
                                                    <li><a href="<?php echo base_url(); ?>room/type"style=" font-weight: bold ">Room Type</a></li>
                                                    <li><a href="<?php echo base_url(); ?>room/ratetype"style=" font-weight: bold ">Rate Type</a></li>
													<li class="divider"></li>
													<li><a href="<?php echo base_url(); ?>material/material_list"style=" font-weight: bold ">Material List</a></li>
													<li><a href="<?php echo base_url(); ?>material/material_type"style=" font-weight: bold ">Material Type</a></li>
                                                </ul>
                                            </li>
                                            <li class="divider-vertical"></li>
                                            <li class="dropdown">
                                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"style=" font-weight: bold; font-size: 17px "><i class="icon-user"></i> Guest <b class="caret"></b></a>
                                                <ul class="dropdown-menu">
                                                    <li><a href="<?php echo base_url(); ?>guest"style=" font-weight: bold ">Guest List</a></li>
                                                </ul>
                                            </li>
                                            
                                            <li class="divider-vertical"></li>
                                            <li class="dropdown">
                                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"style=" font-weight: bold; font-size: 17px "><i class="icon-glass"></i> Service <b class="caret"></b></a>
                                                <ul class="dropdown-menu">
                                                    <li><a href="<?php echo base_url(); ?>service/order"style=" font-weight: bold ">Order Service</a></li>
                                                    <li class="divider"></li>
													<li><a href="<?php echo base_url(); ?>service"style=" font-weight: bold ">Service List</a></li>
                                                    <li><a href="<?php echo base_url(); ?>service/type"style=" font-weight: bold ">Service Type</a></li>
                                                </ul>
                                            </li>
                                            <li class="divider-vertical"></li>
                                            <li class="dropdown">
                                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"style=" font-weight: bold; font-size: 17px "><i class="icon-file"></i> Report <b class="caret"></b></a>
                                                <ul class="dropdown-menu">
                    
                                                    <li><a href="<?php echo base_url(); ?>report/sales" style="font-weight: bold ">Sales</a></li>
                                                    <li><a href="<?php echo base_url(); ?>report/occupied_room" style="font-weight: bold ">Occupied Room</a></li>
                                                    <li><a href="<?php echo base_url(); ?>report/vacant_room" style="font-weight: bold ">Vacant Room</a></li>
                                                    <li><a href="<?php echo base_url(); ?>report/occupancy_ratio" style="font-weight: bold ">Occupancy Ratio</a></li>
                                                    <li><a href="<?php echo base_url(); ?>report/reservation_room" style="font-weight: bold ">Reservation</a></li>
                                                    <li><a href="<?php echo base_url(); ?>report/outlet_sales" style="font-weight: bold ">Outlet Sales</a></li>
    
                                                    
                                                </ul>
                                            </li>
                                            <li class="divider-vertical"></li>
                                        <?php } else { ?>
                                            <li>
                                                <a href="<?php echo base_url(); ?>user" ><i class="icon-lock"></i>User Management</a>
                                            </li>
                                        
                                        <li class="divider-vertical"></li>
                                        <?php } ?>
                                    </ul>
                                    <div class="btn-group pull-right">
                                        <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                                            <i class="icon-user"></i> <?php echo $session['level_name'].' - '.$session['staff_name']; ?> <b class="caret"></b>
                                        </a>
                                        <ul class="dropdown-menu">
                                            <li><a href="<?php echo base_url(); ?>user/logout"><i class="icon-share"></i> Logout</a></li>
                                        </ul>
                                    </div>
                                </div>
                                <!--/.nav-collapse -->
                            </div>
                            <!--/.container-fluid -->
                        </div>
                        <!--/.navbar-inner -->
                    </div>
                    <!--/.navbar -->
					</div>
                    <h3><?php echo $title; ?></h3>
